<%--
  Created by IntelliJ IDEA.
  User: sunhao
  Date: 2014-11-27
  Time: 15:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  request.setAttribute("contextPath", request.getContextPath());
%>
<html>
<head>
    <title>Login Form</title>
  <style type="text/css">
    a, a:hover, a:link, a:active, a:visited{
      text-decoration: none !important;
      color: #0079F5;
    }
  </style>
</head>
<body >
<br><br>
<h1 style="text-align: center;"><font size="4"></font><font color="#FF0000">请登录后再下单！</font></h1>
  <form action="${contextPath}/doLogin" method="post">

    <label for="userName" style = "text-Alignment :2"  ><br/>
    </label>
    <label for="password"><br/>
    </label>
    <table width="1009" border="0">
      <tr>
        <td>&nbsp;</td>
        <td><span style="color: red">${errorMsg }</span></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td width="356">&nbsp;</td>
        <td width="155"><span style="text-Alignment :2">用户名：<font color="#FF0000">*</font></span></td>
        <td width="484"><span style="text-Alignment :2">
          <input type="text" id="userName" name="userName" value="" />
        </span></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>密  码：<font color="#FF0000">*</font><font color="#FF0000">&nbsp;</font><font color="#FF0000">&nbsp;</font></td>
        <td><input type="password" id="password" name="password" value=""/></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>验证 码：<font color="#FF0000">*</font><font color="#FF0000">&nbsp;</font><font color="#FF0000">&nbsp;</font></td>
        <td><input type="text" id="verifycode" name="verifycode" value="" size="5"/><image src="/demo/VerifyCodeServlet"/>
        <a href="javascript:_change()">看不清换一张</a></td>
      </tr>
      <!-- <tr>
        <td>&nbsp;</td>
        <td>验证 码：<font color="#FF0000">*</font><font color="#FF0000">&nbsp;</font><font color="#FF0000">&nbsp;</font></td>
        <td><input type="text" id="verifycode" name="verifycode" value=""/><image src="/VerifyCodeServlet"/></td>
      </tr>
      <tr> -->
        <td>&nbsp;</td>
        <td><input name="submit" type="submit" value="Login"/></td>
        <td><input name="button" type="button" onClick="window.location.href='${contextPath}/registerjsp'" value="Register"/></td>
      </tr>
    </table>
    <table width="1010" border="0">
      <tr>
        <td width="62">&nbsp;</td>
        <td width="287">&nbsp;</td>
        <td width="647"><font color="#FF0000" size="2">红色为必填项</font></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><font color="#00FF00" size="2">最终解释权在linkage</font></td>
      </tr>
    </table>
    <p>&nbsp;</p>
  </form>
</body>
</html>
